package neusoft.yuejian_11.viewHolder;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import neusoft.yuejian_11.R;

/**
 * Created by neusoft on 2017/10/12.
 */

public class CourseitemViewHolder extends RecyclerView.ViewHolder {
    public ImageView imageView;
    public TextView courseTimeView;
    public TextView courseLevelView;
    public TextView courseNameView;
    public TextView coursePriceView;

    public View itemView;//添加OnClick监听器

    public CourseitemViewHolder(View itemView) {
        super(itemView);
        this.itemView = itemView;
        imageView = (ImageView) itemView.findViewById(R.id.imageView);
        courseTimeView = itemView.findViewById(R.id.textView_course_time);
        courseLevelView = itemView.findViewById(R.id.textView_course_level);
        courseNameView = itemView.findViewById(R.id.textView_course_name);
        coursePriceView = itemView.findViewById(R.id.textView_course_price);

    }
}
